import request from '@/utils/request'

export const getList = ({ page, pageSize, poleName, poleNumber, poleStatus }) => {
  return request.get('/pole/info/list', {
    params: {
      page, pageSize, poleName, poleNumber, poleStatus
    }
  })
}
// 删除列表
export const delList = (ids) => {
  return request.delete(`/pole/info/${ids}`)
}
// 添加列表
export const addList = ({ areaId, poleIp, poleName, poleNumber, poleType }) => {
  return request.post(`/pole/info`, {
    areaId: +areaId, poleIp, poleName, poleNumber, poleType
  })
}
// 编辑列表
export const editList = ({ id, areaId, poleIp, poleName, poleNumber, poleType }) => {
  return request.put(`/pole/info`, {
    id, areaId: +areaId, poleIp, poleName, poleNumber, poleType
  })
}

